package com.cz.design.structure.proxy.statics;

/**
 * 代理一般都和被代理对象属于同一个接口
 */
public class LiMingTikTokProxy implements ManTikTok {

    private ManTikTok manTikTok;

    public LiMingTikTokProxy(ManTikTok manTikTok) {
        this.manTikTok = manTikTok;
    }

    @Override
    public void tiktok() {
        System.out.println("渲染直播间...");
        System.out.println("武汉分阳正在直播");
        manTikTok.tiktok();
    }
}
